package com.ruoyi.common.core.domain.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * <p>
 * 服务类型表
 * </p>
 *
 * @author wahaha
 * @since 2024-10-17
 */
public class ServeType extends BaseEntity
{
    private static final long serialVersionUID = 1L;


    /** 服务类型id */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /** 服务类型编码 */
    @Excel(name = "服务类型编码")
    private String code;

    /** 服务类型名称 */
    @Excel(name = "服务类型名称")
    private String name;

    /** 服务类型图标 */
    @Excel(name = "服务类型图标")
    private String serveTypeIcon;

    /** 服务类型图片 */
    @Excel(name = "服务类型图片")
    private String img;

    /** 排序字段 */
    @Excel(name = "排序字段")
    private Long sortNum;

    /** 是否启用，0草稿,1禁用，2启用 */
    @Excel(name = "是否启用，0草稿,1禁用，2启用")
    private Long activeStatus;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setCode(String code)
    {
        this.code = code;
    }

    public String getCode()
    {
        return code;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setServeTypeIcon(String serveTypeIcon)
    {
        this.serveTypeIcon = serveTypeIcon;
    }

    public String getServeTypeIcon()
    {
        return serveTypeIcon;
    }
    public void setImg(String img)
    {
        this.img = img;
    }

    public String getImg()
    {
        return img;
    }
    public void setSortNum(Long sortNum)
    {
        this.sortNum = sortNum;
    }

    public Long getSortNum()
    {
        return sortNum;
    }
    public void setActiveStatus(Long activeStatus)
    {
        this.activeStatus = activeStatus;
    }

    public Long getActiveStatus()
    {
        return activeStatus;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("code", getCode())
                .append("name", getName())
                .append("serveTypeIcon", getServeTypeIcon())
                .append("img", getImg())
                .append("sortNum", getSortNum())
                .append("activeStatus", getActiveStatus())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .append("createBy", getCreateBy())
                .append("updateBy", getUpdateBy())
                .toString();
    }
}
